{% extends "index.html" %}
{% block title %}写文章 - MAGICALBOY{% endblock %}

{% block nav2 %}
<div id="dnav2"><a class="current" href="/admin/post">新建文章</a>  <a href="/admin/page">新建页面</a>
</div>
{% endblock %}
</div>
    <div id="hiddenmessage" >{% block h_message%}{%endblock%}</div>
<!-- Nav Ends -->

<!-- Container Starts -->
<div id="container">

    <!-- Full Width Start-->
    {% block featured %}
    {% endblock %}
    <!-- Featured Ends -->

    
     <!-- Admin Full Width -->
 {% block container %}
	<form method="post" action="/admin/post">

   <div class="wrap">

      <h2>
      写文章
        
 </h2>
      <div id="poststuff">

<div class="submitbox" id="submitlink">

<div id="previewview">
</div>

<h3>目录</h3>
<div class="inside">

<p style="height:120px;overflow-y:scroll">

                    
</p>

</div>

<p class="submit">
<input type="submit" class="button button-highlighted" name="save" value="保存" tabindex="4">

<input type="submit" class="button button-highlighted" name="publish" value="发布" tabindex="4">

<input type="hidden" name="published" value="">

</p>
<div class="inside">
  <p>
	<input type="checkbox" name="sticky" id="sticky" style="margin-left:10px;"><label for="sticky">置顶</label>
<br>
  <input type="checkbox" checked="checked" class="button button-highlighted" name="allow_comment" id="allow_comment" tabindex="4" style="margin-left:10px;"><label for="allow_comment">允许评论</label>
    <br>
  <input type="checkbox" disabled="disabled" class="button button-highlighted" name="allow_trackback" id="allow_trackback" tabindex="4" style="margin-left:10px;"><label for="allow_trackback">允许 Trackback</label>
  </p>
</div>
<div class="side-info">
<h5>相关操作</h5>

<ul>
<li><a href="/admin/entries/post">管理所有文章</a></li>
<li><a href="/admin/entries/page">管理所有页面</a></li>

</ul>
</div>
</div>

<div class="entry-editor" id="post-body">


<div id="titlediv">
<h3>标题</h3>
<div id="titlewrap">
	<input type="text" name="post_title" size="52" tabindex="1" value="" id="title" autocomplete="off">
</div>
<div class="inside">
	<div id="edit-slug-box">
	</div>
</div>
</div>


<div style="display:none" id="ext_page_area" class="stuffbox">

<h3>外链接地址</h3>
<div class="f_text">
    <input type="text" value="" name="external_page_address" id="external_page_address">
</div>
<h3>目标</h3>
<div style="padding:5px;">
    &nbsp;<input type="radio" value="_self" id="target_self" name="target"><label for="target_self">_self</label>
    <input type="radio" value="_blank" id="target_blank" name="target"><label for="target_blank">_blank</label>
</div>

</div>

<div style="margin-left: 20px;" id="postarea" class="stuffbox">

<h3 style="padding-bottom:6px">
<div style="float:left;width:200px;">

文章

</div>

<div style="float: right; width: 200px;" class="editor-toolbar">
    <span id="spn_html" class="alignright"><a class="" id="edButtonHTML">HTML</a></span>
    <span id="spn_visual" class="alignright tg"><a class="active" id="edButtonPreview">Visual</a></span>
    <div class="clear"></div>
</div>
<div style="clear:left"></div>
</h3>
<textarea style="width:98%" name="content" rows="12" ></textarea>
</div>
</div>
<div class="clear"></div>
<div class="stuffbox">
<h3>名称(slug)</h3>
<div class="inside">
	<input type="text" name="slug" size="50" tabindex="1" value=""><br>
</div>
</div>

<div class="clear"></div>
<div id="tag" class="stuffbox">
<h3>标签</h3>
<div style="float:left;" class="inside">
	<input type="text" name="tags" size="50" tabindex="1" value="" onkeyup="this.value=this.value.replace(/，/g, ',');" id="tags"><br>
</div>
<div style="margin:3px 10px 0 0;" id="selscttags">
<a title="Select Tags&lt;" id="popgrin-insert" href="javascript:void(0)">Select Tags</a>
</div>
</div>

<div class="clear"></div>
<div class="stuffbox">
<h3>摘要</h3>
<div class="inside">
	<textarea style="width:98%" name="excerpt"></textarea><br>
</div>
</div>
</div>
</div>
   </form>
<!-- Container Ends -->
{% endblock %}